1: | from(X) | → cons(X,n__from(n__s(X))) | |
2: | first(0,Z) | → nil | |
3: | first(s(X),cons(Y,Z)) | → cons(Y,n__first(X,activate(Z))) | |
4: | sel(0,cons(X,Z)) | → X | |
5: | sel(s(X),cons(Y,Z)) | → sel(X,activate(Z)) | |
6: | from(X) | → n__from(X) | |
7: | s(X) | → n__s(X) | |
8: | first(X1,X2) | → n__first(X1,X2) | |
9: | activate(n__from(X)) | → from(activate(X)) | |
10: | activate(n__s(X)) | → s(activate(X)) | |
11: | activate(n__first(X1,X2)) | → first(activate(X1),activate(X2)) | |
12: | activate(X) | → X | |
13: | FIRST(s(X),cons(Y,Z)) | → ACTIVATE(Z) | |
14: | SEL(s(X),cons(Y,Z)) | → SEL(X,activate(Z)) | |
15: | SEL(s(X),cons(Y,Z)) | → ACTIVATE(Z) | |
16: | ACTIVATE(n__from(X)) | → FROM(activate(X)) | |
17: | ACTIVATE(n__from(X)) | → ACTIVATE(X) | |
18: | ACTIVATE(n__s(X)) | → S(activate(X)) | |
19: | ACTIVATE(n__s(X)) | → ACTIVATE(X) | |
20: | ACTIVATE(n__first(X1,X2)) | → FIRST(activate(X1),activate(X2)) | |
21: | ACTIVATE(n__first(X1,X2)) | → ACTIVATE(X1) | |
22: | ACTIVATE(n__first(X1,X2)) | → ACTIVATE(X2) | |